<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站管理员登陆</title>
</head>
<body>
{literal}
<link rel="stylesheet" href="js/jquery/css/jquery.ui.all.css">
<link href="js/jquery/css/jquery-ui-timepicker-addon.css" type="text/css" />
<script src="js/jquery/jquery-1.8.2.js"></script>
<script src="js/jquery/jquery.bgiframe-2.1.2.js"></script>
<script src="js/jquery/ui/jquery.ui.core.min.js"></script>
<script src="js/jquery/ui/jquery.ui.widget.min.js"></script>
<script src="js/jquery/ui/jquery.ui.mouse.min.js"></script>
<script src="js/jquery/ui/jquery.ui.button.min.js"></script>
<script src="js/jquery/ui/jquery.ui.draggable.min.js"></script>
<script src="js/jquery/ui/jquery.ui.position.min.js"></script>
<script src="js/jquery/ui/jquery.ui.progressbar.min.js"></script>
<script src="js/jquery/ui/jquery.ui.resizable.min.js"></script>
<script src="js/jquery/ui/jquery.ui.dialog.min.js"></script>
<script src="js/jquery/ui/jquery.ui.datepicker.min.js"></script>
<script src="js/jquery/ui/jquery-ui-timepicker-addon.js"></script>
<script src="js/jquery/ui/i18n/jquery.ui.datepicker-zh-CN.min.js"></script>
<script src="js/jquery/ui/i18n/jquery-ui-timepicker-zh-CN.js"></script>
<script src="js/formvalidator.js"></script>
<script src="js/common.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #ffffff;
}
.field{background-color:#ffffff; width:262px;height:40px; line-height:40px;}
.field input{background-color:#ffffff; width:190px;height:20px; border:none;}
-->
</style>
<script language="JavaScript">
 
function checkLoginForm()
{
    return true;
}
$(function(){
		 $( "#dialog-form-find" ).dialog({
			autoOpen: false,
			height: 200,
			width: 250,
			modal: true,
			buttons: {
				"发送密码": function() {
 					sendEmail();
				},
				"关闭": function() {
					 $("#dialog-form-find").dialog("close");
				}
			},
			close: function() {
			
			}
		});	
		$( "#dialog-uppwd" ).dialog({
			autoOpen: false,
			height: 200,
			width: 250,
			modal: true,
			buttons: {
				"确定": function() {
 					semail();
				},
				"关闭": function() {
					 $("#dialog-uppwd").dialog("close");
				}
			},
			close: function() {
			
			}
		});		
});
function sendEmail()
{
	var email = $("#findEmail").val();
	if(isEmail(email))
	{
		$("#tdMsg").css("color","black");
		$("#tdMsg").html("正在发送...");
		$.post("?act=login&op=findPass",{e:email},function(d){
			var j = eval("("+d+")");
			if(j.st=="ok")
			{
				$("#tdMsg").html("发送成功");
			}
			else
			{
				$("#tdMsg").css("color","red");
				$("#tdMsg").html(j.msg);
			}
			});
	}
	else
	{
		$("#tdMsg").css("color","red");
		$("#tdMsg").html("输入的邮箱不正确");
		$("#findEmail")[0].focus();
	}
}
function u_login(){
	var username = $("#username").val();
	var password = $("#password").val();
	$.post("?act=login&op=doLogin",{username:username,password:password},function(d){
		var j = eval("("+d+")");
		if(j.st=="y")
		{
			$("#password").val('');
			alert(j.msg);
			//window.location='?act=main';
		}
		else if(j.st=="o")
		{
			//window.location='?act=main';
			window.location='?act=main&op=mainAll&p='+password;
		}
		else if(j.st=="e")
		{
			$('#dialog-uppwd').dialog('open');
			$("#upid").val(j.id);
			//window.location='?act=main';
		}
		else if(j.st=="n")
		{
			alert(j.msg);
		}
		});
}
function semail()
{
	var email = $("#upemail").val();
	var name = $("#username").val();
	if(isEmail(email))
	{
		$("#upMsg").css("color","red");
		$("#upMsg").html("正在发送...");
		$.post("?act=login&op=uppwd",{e:email,name:name},function(d){
			var j = eval("("+d+")");
			if(j.st=="ok")
			{
				$("#dialog-uppwd").dialog("close");
				$("#upMsg").html("");
				$("#password").val('');
				alert('发送成功,请登录邮箱查看');
				//$("#upMsg").html("发送成功");
				
			}
			else
			{
				$("#upMsg").css("color","red");
				$("#upMsg").html(j.msg);
			}
			});
	}
	else
	{
		$("#upMsg").css("color","red");
		$("#upMsg").html("输入的邮箱不正确");
		$("#upemail")[0].focus();
	}
}
</script>
<link href="images/skin.css" rel="stylesheet" type="text/css">
{/literal}
<body>
<div id="dialog-form-find" title="找回密码" style="display:none;">
	<form name="fromFyleType" id="fromFyleType" method="post" action="?act={$act}&op=ajaxSaveFileType" target="iframeSubmit">
 
      <table height="90" width="100%">
      <tr><td width="50" colspan="2" height="25"></td></tr>
                 <tr><td width="50">输入邮箱</td><td><input type="text" id="findEmail" style="width:150px;"/></td></tr>
<tr><td width="50" colspan="2" height="25" id="tdMsg"></td></tr>
       </table>
 
	<input type="hidden" id="dirId" value="0"/>
	</form>
</div>
<div id="dialog-uppwd" title="密码更新" style="display:none;">
	
 
      <table height="90" width="100%">
      <tr><td width="50" colspan="2" height="25">密码已更新,新密码会发到你的邮箱</td></tr>
       <tr><td width="50">输入邮箱</td><td><input type="text" id="upemail" style="width:150px;"/></td></tr>
		<tr><td width="50" colspan="2" height="25" id="upMsg"></td></tr>
       </table>
	<input type="hidden" id="upid" value=""/>
	
	
</div>
<table width="100%" height="166" border="0" cellpadding="0" cellspacing="0">

  <tr>
    <td valign="top">
	<table width="100%" height="810" border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/loginbg.jpg); background-position:bottom; background-size:960px; background-repeat:no-repeat;">
      
      <tr>
        <td width="100%" valign="top" align="center">
		<table width="960"  height="59" border="0" align="center" cellpadding="0" cellspacing="0">
            
            <tr>
 
              <td height="21" align="center" valign="top">
			  <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table211" height="328">
                  <tr>
                    <td height="164" colspan="2" align="middle">
                   
                        <table cellSpacing="0" cellPadding="0" width="405" border="0" height="143" id="table212">
                        <tr><td align="center" height="10"></td></tr>
                        <tr><td align="center" height="100"><img src="images/logo1.png"/></td></tr>
                                    <tr>
                                    <td>
                                    <table cellpadding="0" cellspacing="0" width="100%" style="background-color:#f2f2f2; border:2px #c5c6bd solid;border-radius:10px;" height="320">
                                    <tr>
 			<td width="100%" height="70"  align="center" colspan="2"><img src="images/mofang.png"/></td>
            </tr>
                          <tr>
                          <td height="60" class="top_hui_text" align="center"><div class="field">用户名：<input name="username" id="username" value="" size="20"></div>                            </td>
                          </tr>
                          <tr>
                            <td height="60" class="top_hui_text" align="center"><div class="field">密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" size="20" id="password" name="password"></div></td>
                          </tr>
                          <tr style="display:none;">
                            
                            <td height="40" class="top_hui_text" align="center"><input class="wenbenkuang" name="valicode" id="valicode" type="text" value="" maxLength="4" size="10"/>&nbsp;&nbsp;<img src='lib/validateCode.php'/>
                              </td>
                          </tr>
                          <tr>
                            
                            <td height="60" align="center"><input name="Submit" type="submit" onclick="u_login();" style="border:#597ddb; solid;background-color:#597ddb; color:#ffffff;width:262px;height:48px; font-size:23px;" class="button" id="Submit" value="登陆"></td>
                          </tr>
                          <tr><td><span style="cursor:pointer; color:#597ddb; margin-left:51px;" onclick="window.location='res/FCA_ContentDatabase_AccountRequestDoc160501.xlsx';">*下载账号申请表格</span> <span onclick="$('#dialog-form-find').dialog('open');" style="cursor:pointer; color:#597ddb; margin-left:10px;">*找回密码</span><a href="help.html" target="_blank"><img src="images/help.jpg" style="vertical-align:middle;margin-right:50px; float:right"/></a></td></tr>
                                     </table>
                                    
                        <br>
                   </td>
                  </tr>
                  <tr>
                    <td width="433" height="164" align="right" valign="bottom"></td>
                    <td width="57" align="right" valign="bottom" style="position:relative"><div style=" position:absolute;right:-278px;bottom:-71px;background-image:url(images/phone.png);width:104px;height:149px;"><img src="images/qr.png" width="73"  onclick="window.location.href='mobile/index.html';" style="position:absolute; top:43px;left:16px;"/></div></td>
                  </tr>
              </table></td>
            </tr>
          </table>
          </td>
      </tr>
    </td></tr>
	</table></td>
  </tr>
  <!-- 
  <tr>
    <td height="20">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="login-buttom-bg">
      <tr>
        <td align="center"><span class="login-buttom-txt">Copyright &copy; 2012-2013</span></td>
      </tr>
    </table></td>
  </tr>
   -->
</table>

</body>
</html>
